<?xml version="1.0"?>
<ruleset name="phpDocumentor">
 <description>The coding standard for phpDocumentor.</description>

    <file>src</file>
    <file>tests/unit</file>
    <file>tests/integration</file>
    <arg value="p"/>
    <rule ref="PSR2">
        <include-pattern>*\.php</include-pattern>
    </rule>

    <rule ref="Doctrine">
        <exclude name="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint.UselessDocComment" />
    </rule>

    <rule ref="Generic.Files.LineLength.TooLong">
        <exclude-pattern>*/src/Finder.php</exclude-pattern>
        <exclude-pattern>*/src/Specification/SpecificationInterface.php</exclude-pattern>
        <exclude-pattern>*/src/Specification/PrunableInterface.php</exclude-pattern>
        <exclude-pattern>*/src/Specification/CompositeSpecification.php</exclude-pattern>
        <exclude-pattern>*/tests/unit/Specification/GlobTest.php</exclude-pattern>
    </rule>


    <rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming.SuperfluousSuffix">
        <exclude-pattern>*/src/Specification/SpecificationInterface.php</exclude-pattern>
        <exclude-pattern>*/src/Specification/PrunableInterface.php</exclude-pattern>
    </rule>

    <rule ref="Generic.Formatting.SpaceAfterNot">
        <properties>
            <property name="spacing" value="0" />
        </properties>
    </rule>
</ruleset>
